/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/api/getXCsrfToken', controller.home.getXCsrfToken);
  router.post('/api/bill/getBillAll', controller.bill.getBillAll);
  router.post('/api/bill/getBillAllByDay', controller.bill.getBillAllByDay);
  router.post('/api/bill/insertZFBData', controller.bill.insertZFBData);
  router.post('/api/bill/insertWXData', controller.bill.insertWXData);
  router.post('/api/bill/deleteBill', controller.bill.deleteBill);
  router.post('/api/bill/getBillStatistics', controller.bill.getBillStatistics);
  router.post('/api/bill/getDataByTransactionType', controller.bill.getDataByTransactionType);
  router.post('/api/transactionConfig/insert', controller.transactionConfig.insert);
  router.get('/api/transactionConfig/getAll', controller.transactionConfig.findAll);
};
